//
//  NYSearchUserTableViewCell.m
//  Nooryes
//
//  Created by baken on 2020/3/10.
//  Copyright © 2020 MyApp. All rights reserved.
//

#import "NYSearchUserTableViewCell.h"
#import "AccountModel.h"

@implementation NYSearchUserTableViewCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    NYSearchUserTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kNYSearchUserTableViewCell];
    if (!cell) {
        cell = [[NSBundle mainBundle] loadNibNamed:kNYSearchUserTableViewCell owner:nil options:nil].firstObject;
    }
    return cell;
}

-(void)setModel:(AccountModel *)model{
    _model = model;
    self.userID.text = [NSString stringWithFormat:@"ID:%@",model.no];
    self.title.text = model.nickname;
    self.content.text = model.intro;
    [self.img sd_setImageWithURL:[NSURL URLWithString:model.image]];
}
@end
